package game

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type GameInfoRouter struct{}

func (s *GameInfoRouter) InitGameInfoRouter(Router *gin.RouterGroup) {
	apiRouter := Router.Group("gameInfo").Use(middleware.OperationRecord())
	{
		apiRouter.POST("getGameInfoList", gameInfoApi.GetGameInfoList)  // 获取路由组
		apiRouter.POST("createGameInfo", gameInfoApi.CreateGameInfo)   // 创建Api
		apiRouter.DELETE("deleteGameInfo", gameInfoApi.DeleteGameInfo) // 删除Api
		apiRouter.GET("getGameInfo", gameInfoApi.GetGameInfoById)     // 获取单条Api消息
		apiRouter.PUT("updateGameInfo", gameInfoApi.UpdateGameInfo)   // 更新api
	}
}
